package requests

type TextExists struct {
	Key   string `form:"key" json:"key"`
	Value string `form:"value" json:"value"`
}

type Register struct {
	Captcha  string `form:"captcha" json:"captcha" binding:"required"`
	Email    string `form:"email" json:"email" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
	Username string `form:"username" json:"username" binding:"required"`
	IdKeyC   string `form:"idKeyC" json:"idKeyC" binding:"required"`
	Ip       string `form:"ip" json:"ip" binding:"omitempty"`
}

type Login struct {
	Captcha  string `form:"captcha" json:"captcha" binding:"required"`
	Email    string `form:"email" json:"email" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
	IdKeyC   string `form:"idKeyC" json:"idKeyC" binding:"required"`
	Ip       string `form:"ip" json:"ip" binding:"omitempty"`
}

type ScoreSort struct {
	Limit int `form:"limit" json:"limit" binding:"omitempty"`
}

type Pwd struct {
	NewPwd string `form:"newpwd" json:"newpwd" binding:"required"`
	OldPwd string `form:"oldpwd" json:"oldpwd" binding:"required"`
	UserID int    `form:"user_id" json:"user_id" binding:"omitempty"`
}

type UserThread struct {
	Tag      string `form:"tag" json:"tag" binding:"required"`
	Limit    int    `form:"limit" json:"limit" binding:"omitempty"`
	Page     int    `form:"page" json:"page" binding:"omitempty"`
	Username string `form:"username" json:"username" binding:"omitempty"`
}

type Email struct {
	Captcha string `form:"captcha" json:"captcha" binding:"required"`
	Email   string `form:"email" json:"email" binding:"required"`
	IdKeyC  string `form:"idKeyC" json:"idKeyC" binding:"required"`
	IP      string `form:"ip" json:"ip" binding:"omitempty"`
}


type ResetPwd struct {
	Captcha string `form:"captcha" json:"captcha" binding:"required"`
	NewPwd string `form:"newpwd" json:"newpwd" binding:"required"`
	Email   string `form:"email" json:"email" binding:"required"`
	UserID int    `form:"user_id" json:"user_id" binding:"omitempty"`
}
